Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

384
Views
What does the :8 mean in Webpack's output variables. filename: [name][contenthash:8]?

I'm configuring Webpacks output and i have run into some examples which have this unusual syntax added on the end.

output: {
    filename: '[name][fullHash:8].bundle.js',
    chunkFilename: '[name][fullHash:8].bundle.js',
    path: `${__dirname}/dist`,
    publicPath: "/",
},

Ok now you see the :8's after fullhash? what extra feature does it provide? My first guess was UTF-8??? But that's just a stab in the dark.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

So from a quick little search in the docs, I found this one section which talks about it

The length of hashes ([hash], [contenthash] or [chunkhash]) can be specified using [hash:16] (defaults to 20). Alternatively, specify output.hashDigestLength to configure the length globally.

So going by that, it would probably mean that [fullHash:8] would produce a hash of length 8, which I suppose I would advice against, and would be better off to keep it at the default of 20 (by just removing the :8).

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!